<template>
  <div id="wrap">
    <Scrolltop></Scrolltop>
    <!--头部-->
    <div class="top">
      <img @click="goback()" src="../../../static/bmqd/BMQD-1.png" alt="">
      <span>{{title}}</span>
      <img src="../../../static/bmqd/fenxiang.png" alt="">
    </div>

    <div class="content" v-for="i in arr">
      <div class="top-img">
        
        <img :src="i.src" alt="">
        
      </div>

      <div class="wrap" >
        <div class="goods-img">
          <div class="goods-info" v-for="item in i.info">
            
            <div class="mf-top">
              <img :src="item.url" alt="">
            </div>
            <div class="mf-bottom">
              <h3>{{item.tit}}</h3>
              <span>{{item.price}}</span>
            </div>
          </div>
        </div>
      </div>
    </div>

  </div>
</template>

<script>
  import Scrolltop from './Scrolltop'
    export default {
        name: "Jingxuan",
      data(){
          return{
            title:'品牌精选',
            arr:[
              {src:require('../../../static/pinpaijingxuan/ppjx1.png'),
                info:[
                  {url:require('../../../static/pinpaijingxuan/ppjx2.png'),tit:'HABA White Lady雪白...',price:'¥266.88'},
                  {url:require('../../../static/pinpaijingxuan/ppjx2.png'),tit:'HABA White Lady雪白...',price:'¥266.88'},
                  {url:require('../../../static/pinpaijingxuan/ppjx3.png'),tit:'HABA G露润泽柔肤水...',price:'¥166.16'}
                ]
              },
              {src:require('../../../static/pinpaijingxuan/ppjx1.png'),
                info:[
                  {url:require('../../../static/pinpaijingxuan/ppjx2.png'),tit:'HABA White Lady雪白...',price:'¥266.88'},
                  {url:require('../../../static/pinpaijingxuan/ppjx2.png'),tit:'HABA White Lady雪白...',price:'¥266.88'},
                  {url:require('../../../static/pinpaijingxuan/ppjx3.png'),tit:'HABA G露润泽柔肤水...',price:'¥166.16'}
                ]
              },
              {src:require('../../../static/pinpaijingxuan/ppjx1.png'),
                info:[
                  {url:require('../../../static/pinpaijingxuan/ppjx2.png'),tit:'HABA White Lady雪白...',price:'¥266.88'},
                  {url:require('../../../static/pinpaijingxuan/ppjx2.png'),tit:'HABA White Lady雪白...',price:'¥266.88'},
                  {url:require('../../../static/pinpaijingxuan/ppjx3.png'),tit:'HABA G露润泽柔肤水...',price:'¥166.16'}
                ]
              }

            ],
          }
      },
      components:{
        Scrolltop
      },
      methods:{
        goback(){
          window.history.go(-1);
        }
      }
    }
</script>

<style scoped>
  #wrap{
    background: #f2f2f2;
    position: relative;
  }

  .top{
    width: 69rem;
    height: 3rem;
    line-height: 3rem;
    padding: 3.5rem 1.5rem;
    background: #e53e42;
    display: flex;
    justify-content: space-between;
  }
  .top span{
    font-size: 3.6rem;
    color: #fff;
  }
  .top img{
    width: 3rem;
    height: 3rem;
  }
  .top-img{
    position: relative;
    width: 72rem;
    height: 40rem;
  }
  .top-img p{
    position: absolute;
    left: 0;
    bottom: 7rem;
    width: 100%;
    height: 8rem;
    line-height: 8rem;
    font-size: 3rem;
    color: #fff;
    background: rgba(0,0,0,0.3);
    text-align: center;

  }
  .top-img img{
    width: 100%;
    height: 100%;
  }





  .wrap{
    padding:1rem 2rem ;
  }
  .wrap p{
    font-size: 2.8rem;
    color: #4d4d4d;
    margin-bottom: 6rem;
  }
  .goods-img{
    width: 100%;
    display: flex;
    justify-content: space-between;
    /*background: #f00;*/
  }
  .goods-info{
    width: 22rem;
    /*height: 32rem;*/
    background: #fff;
    margin-bottom: 1rem;
  }
  .mf-top{
    width: 16rem;
    height: 15rem;
    padding:2rem 3rem;
    border-bottom: 1px solid #ccc;
  }
  .mf-top img{
    width: 15rem;
    height: 15rem;
  }
  .mf-bottom{
    padding: 1rem 0 1rem 1rem;
  }
  .mf-bottom h3{
    text-align: left;
    font-size: 1.8rem;
    color: #4d4d4d;
  }
  .mf-bottom span{
    display: block;
    color: #e53e42;
    font-size: 2.4rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
</style>
